let express = require('express');
let ChatAction = require('../../action/chatAction');
let router = express.Router();

router.post('/create', function (req, res, next) {
    ChatAction.create(req.body).then(res.res,res.rej);
});
router.post('/list', function (req, res, next) {
    ChatAction.list(req.body).then(res.res,res.rej);
});
router.post('/recordList', function (req, res, next) {
    ChatAction.recordList(req.body).then(res.res,res.rej);
});
module.exports = router;